import MySQLdb

class SQLWrite():
    def __init__(self):
        self.database = MySQLdb.connect("localhost", "root", "6333545998", "HighTouchTest", charset = 'utf8')

    def Write(self, Card, Score):
        cur = self.database.cursor()

        sql = "insert into Score(Card, Score) values('%s', '%s')" %(Card, Score)
        cur.execute(sql)
        self.database.commit()